package StudyCode.summary.myfile;

import java.nio.file.Path;
import java.nio.file.Paths;

/**
 * 版权所有 科技与人文(www.tah1986.com)
 */
public class PartialPathCompareWithEndWith {
	public static void main(String[] args) {
		Path path01 = Paths.get("/folder1/folder2/folder3/test.txt");
		boolean ew = path01.endsWith("/folder1/folder2");
		if (ew) {
			System.out.println("路径相等!");
		} else {
			System.out.println("路径不等!");
		}
	}
}
